<template>
	<div class="header">
		<img src="../../../assets/images/logo.png" class="logo" />
		<ul class="menus">
			<li><router-link to="/mobile/home">首页推荐</router-link> </li>
			<li><router-link to="/mobile/carousel">书库</router-link></li>
			<li><router-link to="/mobile/myinfo">我的</router-link></li>
		</ul>
		<div class="search">
			<router-link to="/mobile/search">
				<img src="@/assets/img/search.png" /></router-link>
		</div>
	</div>
</template>

<script>
	export default {
		name: 'MobileHeader',
		data() {
			return {

			}
		},
		methods: {
			Amination() {
				this.isaBool = !this.isaBool;
				console.log(this.isaBool);
			}
		}
	}
</script>

<style scoped>
	.header {
		width: 100%;
		height: 3rem;
		background-color: #a68b5b;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	.header .logo {
		margin-left: 1rem;
	}

	.header .menus {
		margin: 0;
		padding: 0;
		list-style: none;
		width: 55%;
		height: 100%;
		color: white;
		/* 默认显示；动画开始的时候，设置为隐藏 */
		display: block;
		font-size: 2rem;
	}

	.header .menus li {
		text-align: center;
		
	}

	.header .menus li a {
		color: white;
		width: 33.33%;
		float: left;
		height: 2.5rem;
		line-height: 3rem;
		font-size: 1rem;
		overflow:hidden;
	}

	.header .menus li .router-link-active {
		border-bottom: 0.1rem solid gold;
		color: #FFD700;
	}

	.header .search {
		width: 30px;
		height: 2rem;
		border-radius: 50%;
		border: 1px solid white;
		margin-right: 1rem;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.header .search img {
		width: 100%;
		height: 1rem;
	}

	.header img {
		width: 50px;
		height: 2rem;
	}
</style>